﻿CREATE TABLE [dbo].[ArticulosCamposPersonalizadosArticulos] (
    [IdArticulo]                   INT          NOT NULL,
    [IdCampoPersonalizadoArticulo] INT          NOT NULL,
    [Valor]                        VARCHAR (50) NOT NULL,
    CONSTRAINT [PK_ArticulosCamposPersonalizadosArticulos] PRIMARY KEY CLUSTERED ([IdArticulo] ASC, [IdCampoPersonalizadoArticulo] ASC),
    CONSTRAINT [FK_ArticulosCamposPersonalizadosArticulos_Articulos] FOREIGN KEY ([IdArticulo]) REFERENCES [dbo].[Articulos] ([IdArticulo]),
    CONSTRAINT [FK_ArticulosCamposPersonalizadosArticulos_CamposPersonalizadosArticulos] FOREIGN KEY ([IdCampoPersonalizadoArticulo]) REFERENCES [dbo].[CamposPersonalizadosArticulos] ([IdCampoPersonalizadoArticulo])
);

